package com.three.crm.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class GoodsBean  implements Parcelable {

    private int id;
    private int user_id;
    private String username;
    private String goods_name;
    private int num;
    private String price;
    private String ctime;
    private String address;
    private String images;
    private String video_url;
    private String [] imgs_arr;
    private String title;

    public GoodsBean() {
    }

    public GoodsBean(int id, int user_id, String username, String goods_name, int num, String price, String ctime, String address, String images, String video_url, String[] imgs_arr, String title) {
        this.id = id;
        this.user_id = user_id;
        this.username = username;
        this.goods_name = goods_name;
        this.num = num;
        this.price = price;
        this.ctime = ctime;
        this.address = address;
        this.images = images;
        this.video_url = video_url;
        this.imgs_arr = imgs_arr;
        this.title = title;
    }

    protected GoodsBean(Parcel in) {
        id = in.readInt();
        user_id = in.readInt();
        username = in.readString();
        goods_name = in.readString();
        num = in.readInt();
        price = in.readString();
        ctime = in.readString();
        address = in.readString();
        images = in.readString();
        video_url = in.readString();
        imgs_arr = in.createStringArray();
        title = in.readString();
    }

    public static final Creator<GoodsBean> CREATOR = new Creator<GoodsBean>() {
        @Override
        public GoodsBean createFromParcel(Parcel in) {
            return new GoodsBean(in);
        }

        @Override
        public GoodsBean[] newArray(int size) {
            return new GoodsBean[size];
        }
    };

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getCtime() {
        return ctime;
    }

    public void setCtime(String ctime) {
        this.ctime = ctime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public String getVideo_url() {
        return video_url;
    }

    public void setVideo_url(String video_url) {
        this.video_url = video_url;
    }

    public String[] getImgs_arr() {
        return imgs_arr;
    }

    public void setImgs_arr(String[] imgs_arr) {
        this.imgs_arr = imgs_arr;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeInt(user_id);
        dest.writeString(username);
        dest.writeString(goods_name);
        dest.writeInt(num);
        dest.writeString(price);
        dest.writeString(ctime);
        dest.writeString(address);
        dest.writeString(images);
        dest.writeString(video_url);
        dest.writeStringArray(imgs_arr);
        dest.writeString(title);
    }
}
